const { DataTypes } = require('sequelize') //导入sequelize的数据类型
const sequelize = require('../db') //导入数据库连接


const User = sequelize.define(`User`, {
    username: {
        type: DataTypes.STRING,
        allowNull: false
    },
    password: {
        type: DataTypes.STRING,
        allowNull: false
    }
}, {
    paranoid: true
})

module.exports = User